package com.rm.zeyou.service;

import com.rm.zeyou.entity.RefundOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rm.zeyou.entity.User;
import com.rm.zeyou.entity.UserItemOrder;
import com.rm.zeyou.response.ApiRestResponse;
import com.rm.zeyou.vo.request.ApplyRefundVo;
import com.rm.zeyou.vo.response.ApplyRefundIndexResponseVo;
import com.rm.zeyou.vo.response.RefundOrderDetailResponseVo;

import java.math.BigDecimal;
import java.util.Map;

/**
 * <p>
 * 售后订单表 服务类
 * </p>
 *
 * @author YanYang
 * @since 2025-04-01 10:26:48
 */
public interface RefundOrderService extends IService<RefundOrder> {

    ApiRestResponse<ApplyRefundIndexResponseVo> applyRefundIndex(User user, String orderNo);

    ApiRestResponse<Integer> applyRefund(User user, ApplyRefundVo refundVo) throws Exception;

    ApiRestResponse<RefundOrderDetailResponseVo> refundOrderDetail(User user, String orderNo);

    Map<String, BigDecimal> sumRefundPrice(UserItemOrder userItemOrder);
}
